home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / smaltalk / gnu_st.lha / gnu_st / smalltalk-1.1.1 / mst.tab.c < prev    next >
C/C++ Source or Header  |  1991-09-14  |  39KB  |  1,255 lines

  1.  
  2. /*  A Bison parser, made from mst.y  */
  3.  
  4. #define    BANG    258
  5. #define    COLON    259
  6. #define    UPARROW    260
  7. #define    DOT    261
  8. #define    ASSIGN    262
  9. #define    SHARP    263
  10. #define    SEMICOLON    264
  11. #define    OPEN_PAREN    265
  12. #define    CLOSE_PAREN    266
  13. #define    OPEN_BRACKET    267
  14. #define    CLOSE_BRACKET    268
  15. #define    PRIMITIVE_START    269
  16. #define    INTERNAL_TOKEN    270
  17. #define    IDENTIFIER    271
  18. #define    KEYWORD    272
  19. #define    STRING_LITERAL    273
  20. #define    SYMBOL_KEYWORD    274
  21. #define    BINOP    275
  22. #define    VERTICAL_BAR    276
  23. #define    INTEGER_LITERAL    277
  24. #define    FLOATING_LITERAL    278
  25. #define    CHAR_LITERAL    279
  26.  
  27. #line 26 "mst.y"
  28.  
  29. #include "mst.h"
  30. #include "mstsym.h"
  31. #include "msttree.h"
  32. #include "mstdict.h"
  33. #include <stdio.h>
  34. #ifdef HAS_ALLOCA_H
  35. #include <alloca.h>
  36. #endif
  37.  
  38. #define YYDEBUG 1
  39.  
  40. extern Boolean        quietExecution;
  41.  
  42.  
  43. #line 44 "mst.y"
  44. typedef union{
  45.   char        cval;
  46.   double    fval;
  47.   long        ival;
  48.   char        *sval;
  49.   TreeNode    node;
  50. } YYSTYPE;
  51.  
  52. #ifndef YYLTYPE
  53. typedef
  54.   struct yyltype
  55.     {
  56.       int timestamp;
  57.       int first_line;
  58.       int first_column;
  59.       int last_line;
  60.       int last_column;
  61.       char *text;
  62.    }
  63.   yyltype;
  64.  
  65. #define YYLTYPE yyltype
  66. #endif
  67.  
  68. #include <stdio.h>
  69.  
  70. #ifndef __STDC__
  71. #define const
  72. #endif
  73.  
  74.  
  75.  
  76. #define    YYFINAL        146
  77. #define    YYFLAG        -32768
  78. #define    YYNTBASE    25
  79.  
  80. #define YYTRANSLATE(x) ((unsigned)(x) <= 279 ? yytranslate[x] : 71)
  81.  
  82. static const char yytranslate[] = {     0,
  83.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  84.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  85.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  86.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  87.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  88.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  89.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  90.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  91.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  92.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  93.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  94.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  95.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  96.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  97.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  98.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  99.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  100.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  101.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  102.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  103.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  104.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  105.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  106.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  107.      2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  108.      2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
  109.      6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
  110.     16,    17,    18,    19,    20,    21,    22,    23,    24
  111. };
  112.  
  113. static const short yyprhs[] = {     0,
  114.      0,     2,     5,     7,     9,    12,    16,    19,    22,    26,
  115.     29,    33,    35,    38,    42,    45,    49,    53,    58,    60,
  116.     63,    65,    67,    69,    71,    73,    75,    78,    82,    84,
  117.     88,    91,    95,    97,   100,   101,   103,   106,   108,   112,
  118.    116,   118,   121,   124,   128,   130,   132,   134,   136,   138,
  119.    140,   144,   146,   148,   150,   152,   154,   156,   158,   161,
  120.    163,   165,   167,   169,   171,   173,   176,   179,   183,   185,
  121.    188,   190,   192,   194,   196,   198,   203,   204,   207,   210,
  122.    214,   216,   218,   220,   223,   225,   227,   231,   233,   235,
  123.    238,   241,   245,   248,   251,   255,   257,   260
  124. };
  125.  
  126. static const short yyrhs[] = {    27,
  127.      0,    26,    32,     0,    15,     0,    28,     0,    27,    28,
  128.      0,    29,    31,     3,     0,    29,     3,     0,    43,     3,
  129.      0,    40,    43,     3,     0,     1,     3,     0,     3,    30,
  130.      3,     0,    46,     0,    32,     3,     0,    31,    32,     3,
  131.      0,    33,    42,     0,    33,    40,    42,     0,    33,    39,
  132.     42,     0,    33,    40,    39,    42,     0,    34,     0,    35,
  133.     36,     0,    37,     0,     1,     0,    16,     0,    20,     0,
  134.     21,     0,    16,     0,    38,    36,     0,    37,    38,    36,
  135.      0,    17,     0,    14,    22,    20,     0,    21,    21,     0,
  136.     21,    41,    21,     0,    36,     0,    41,    36,     0,     0,
  137.     43,     0,     5,    44,     0,    44,     0,    44,     6,    42,
  138.      0,     1,     6,    42,     0,    46,     0,    45,    46,     0,
  139.     36,     7,     0,    45,    36,     7,     0,    47,     0,    61,
  140.      0,    68,     0,    36,     0,    48,     0,    58,     0,    10,
  141.     44,    11,     0,    49,     0,    50,     0,    52,     0,    53,
  142.      0,    54,     0,    22,     0,    23,     0,     8,    51,     0,
  143.     16,     0,    35,     0,    19,     0,    17,     0,    24,     0,
  144.     18,     0,     8,    55,     0,    10,    11,     0,    10,    56,
  145.     11,     0,    57,     0,    56,    57,     0,    49,     0,    51,
  146.      0,    53,     0,    52,     0,    55,     0,    12,    59,    42,
  147.     13,     0,     0,    60,    21,     0,     4,    36,     0,    60,
  148.      4,    36,     0,    62,     0,    64,     0,    66,     0,    63,
  149.     34,     0,    47,     0,    62,     0,    65,    35,    63,     0,
  150.     63,     0,    64,     0,    65,    67,     0,    38,    65,     0,
  151.     67,    38,    65,     0,    61,    69,     0,     9,    70,     0,
  152.     69,     9,    70,     0,    34,     0,    35,    63,     0,    67,
  153.      0
  154. };
  155.  
  156. #if YYDEBUG != 0
  157. static const short yyrline[] = { 0,
  158.     79,    81,    84,    87,    89,    92,    94,    95,   101,   108,
  159.    111,   115,   148,   156,   165,   168,   170,   172,   177,   179,
  160.    181,   182,   187,   191,   193,   196,   200,   202,   207,   211,
  161.    219,   221,   225,   227,   231,   233,   236,   240,   241,   244,
  162.    251,   253,   256,   258,   263,   265,   266,   269,   271,   272,
  163.    273,   276,   278,   279,   280,   281,   284,   286,   289,   293,
  164.    295,   296,   297,   301,   305,   309,   313,   315,   319,   321,
  165.    326,   328,   329,   330,   331,   334,   339,   341,   347,   349,
  166.    354,   356,   357,   360,   364,   366,   369,   374,   376,   379,
  167.    384,   387,   392,   397,   399,   404,   406,   408
  168. };
  169.  
  170. static const char * const yytname[] = {   "$",
  171. "error","$illegal.","BANG","COLON","UPARROW","DOT","ASSIGN","SHARP","SEMICOLON","OPEN_PAREN",
  172. "CLOSE_PAREN","OPEN_BRACKET","CLOSE_BRACKET","PRIMITIVE_START","INTERNAL_TOKEN","IDENTIFIER","KEYWORD","STRING_LITERAL","SYMBOL_KEYWORD","BINOP",
  173. "VERTICAL_BAR","INTEGER_LITERAL","FLOATING_LITERAL","CHAR_LITERAL","program","internal_marker","class_definition_list","class_definition","class_header","class_specification",
  174. "method_list","method","message_pattern","unary_selector","binary_selector","variable_name","keyword_variable_list","keyword","primitive","temporaries",
  175. "variable_names","statements","non_empty_statements","expression","assigns","simple_expression","primary","literal","number","symbol_constant",
  176. "symbol","character_constant","string","array_constant","array","array_constant_list","array_constant_elt","block","opt_block_variables","block_variable_list",
  177. "message_expression","unary_expression","unary_object_description","binary_expression","binary_object_description","keyword_expression","keyword_binary_object_description_list","cascaded_message_expression","semi_message_list","message_elt",
  178. ""
  179. };
  180. #endif
  181.  
  182. static const short yyr1[] = {     0,
  183.     25,    25,    26,    27,    27,    28,    28,    28,    28,    28,
  184.     29,    30,    31,    31,    32,    32,    32,    32,    33,    33,
  185.     33,    33,    34,    35,    35,    36,    37,    37,    38,    39,
  186.     40,    40,    41,    41,    42,    42,    43,    43,    43,    43,
  187.     44,    44,    45,    45,    46,    46,    46,    47,    47,    47,
  188.     47,    48,    48,    48,    48,    48,    49,    49,    50,    51,
  189.     51,    51,    51,    52,    53,    54,    55,    55,    56,    56,
  190.     57,    57,    57,    57,    57,    58,    59,    59,    60,    60,
  191.     61,    61,    61,    62,    63,    63,    64,    65,    65,    66,
  192.     67,    67,    68,    69,    69,    70,    70,    70
  193. };
  194.  
  195. static const short yyr2[] = {     0,
  196.      1,     2,     1,     1,     2,     3,     2,     2,     3,     2,
  197.      3,     1,     2,     3,     2,     3,     3,     4,     1,     2,
  198.      1,     1,     1,     1,     1,     1,     2,     3,     1,     3,
  199.      2,     3,     1,     2,     0,     1,     2,     1,     3,     3,
  200.      1,     2,     2,     3,     1,     1,     1,     1,     1,     1,
  201.      3,     1,     1,     1,     1,     1,     1,     1,     2,     1,
  202.      1,     1,     1,     1,     1,     2,     2,     3,     1,     2,
  203.      1,     1,     1,     1,     1,     4,     0,     2,     2,     3,
  204.      1,     1,     1,     2,     1,     1,     3,     1,     1,     2,
  205.      2,     3,     2,     2,     3,     1,     2,     1
  206. };
  207.  
  208. static const short yydefact[] = {     0,
  209.      0,     0,     0,     0,     0,    77,     3,    26,    65,     0,
  210.     57,    58,    64,     0,     0,     4,     0,    48,     0,     0,
  211.     38,     0,    41,    45,    49,    52,    53,    54,    55,    56,
  212.     50,    46,    81,    88,    82,     0,    83,    47,    10,     0,
  213.      0,    48,    12,    37,     0,    60,    63,    62,    24,    25,
  214.     61,    59,    66,     0,     0,     0,     0,    31,    33,     0,
  215.     22,    23,    29,     2,     0,    19,     0,    21,     0,     5,
  216.      7,     0,     0,    43,     0,     0,     8,     0,    48,    42,
  217.      0,    93,    84,     0,     0,    90,    40,    36,    11,    67,
  218.     71,    72,    74,    73,    75,     0,    69,    51,    79,     0,
  219.      0,    78,    32,    34,     0,     0,     0,    15,    20,     0,
  220.     27,     6,     0,    13,     9,    39,    44,    96,     0,    98,
  221.     94,     0,    85,    86,    87,    89,    91,     0,    68,    70,
  222.     76,    80,     0,    17,     0,    16,    28,    14,    97,    95,
  223.     92,    30,    18,     0,     0,     0
  224. };
  225.  
  226. static const short yydefgoto[] = {   144,
  227.     14,    15,    16,    17,    41,    72,    64,    65,    66,    51,
  228.     18,    68,    69,   106,    19,    60,    87,    88,    21,    22,
  229.     23,    24,    25,    26,    27,    92,    28,    29,    30,    95,
  230.     96,    97,    31,    56,    57,    32,    33,    34,    35,    36,
  231.     37,   120,    38,    82,   121
  232. };
  233.  
  234. static const short yypact[] = {   247,
  235.     44,   294,   294,   339,   294,    36,-32768,-32768,-32768,    22,
  236. -32768,-32768,-32768,    98,   148,-32768,    15,    39,   291,    49,
  237.     64,   294,-32768,    57,-32768,-32768,-32768,-32768,-32768,-32768,
  238. -32768,    56,    59,    66,    90,   142,-32768,-32768,-32768,   173,
  239.     82,-32768,-32768,-32768,   309,-32768,-32768,-32768,-32768,-32768,
  240. -32768,-32768,-32768,    77,    74,   271,    16,-32768,-32768,    28,
  241. -32768,-32768,-32768,-32768,   123,-32768,    74,    81,    74,-32768,
  242. -32768,    80,    88,-32768,    96,    91,-32768,   173,    97,-32768,
  243.    257,   100,-32768,   294,   294,    81,-32768,-32768,-32768,-32768,
  244. -32768,-32768,-32768,-32768,-32768,   324,-32768,-32768,-32768,    92,
  245.     74,-32768,-32768,-32768,    94,   223,   198,-32768,-32768,    74,
  246. -32768,-32768,   114,-32768,-32768,-32768,-32768,-32768,   294,    81,
  247. -32768,   257,-32768,-32768,    66,-32768,    13,   294,-32768,-32768,
  248. -32768,-32768,   102,-32768,   223,-32768,-32768,-32768,    66,-32768,
  249.     13,-32768,-32768,   120,   125,-32768
  250. };
  251.  
  252. static const short yypgoto[] = {-32768,
  253. -32768,-32768,   117,-32768,-32768,-32768,   -11,-32768,   -33,   -14,
  254.      2,-32768,   -27,    27,    71,-32768,   -51,    11,    18,-32768,
  255.     17,   -77,-32768,   -43,-32768,   134,   -32,   -30,-32768,   136,
  256. -32768,    33,-32768,-32768,-32768,-32768,   -56,   -74,   -68,   -60,
  257. -32768,   106,-32768,-32768,    21
  258. };
  259.  
  260.  
  261. #define    YYLAST        360
  262.  
  263.  
  264. static const short yytable[] = {    67,
  265.     83,    91,    67,    42,   100,    73,   123,   123,    85,   125,
  266.     20,    59,    93,   108,    94,    61,   126,    71,    43,   101,
  267.     44,    84,    54,    79,   127,    20,   116,   124,   124,    76,
  268.     62,    63,    49,    50,    49,    50,   102,     8,    80,    55,
  269.    110,   123,    58,     8,   139,    74,    39,   118,   103,    40,
  270.    123,    77,    91,    85,   134,   136,    99,    67,   128,   126,
  271.    113,   104,   124,    93,    81,    94,   119,   141,   109,    78,
  272.    111,   124,   -85,   -85,   -86,   -86,   -85,   -85,   -86,   -86,
  273.     61,    62,   112,   143,    89,    42,    42,    98,   118,     8,
  274.    114,    83,   128,   115,    85,    62,    63,    63,    61,    49,
  275.     50,    40,   132,   117,   131,    83,   -89,   119,   122,   -89,
  276.    -89,   137,    84,    62,    63,   133,   138,    49,    50,   145,
  277.     42,   142,   -35,    75,   146,   -35,    84,     3,   130,    42,
  278.      4,    70,     5,   135,     6,   107,   105,    52,     8,    53,
  279.      9,    86,   140,    10,    11,    12,    13,    -1,     1,     0,
  280.      2,     0,     3,     0,     0,     4,     0,     5,    63,     6,
  281.      0,    49,    50,     8,     0,     9,     0,     0,    10,    11,
  282.     12,    13,   -35,    75,     0,   -35,     0,     3,     0,     0,
  283.      4,     0,     5,     0,     6,   -35,     0,     0,     8,     0,
  284.      9,     0,     0,     0,    11,    12,    13,   -35,    75,     0,
  285.    -35,     0,     3,     0,     0,     4,     0,     5,     0,     6,
  286.      0,   105,     0,     8,     0,     9,     0,     0,     0,    11,
  287.     12,    13,   -35,    75,     0,   -35,     0,     3,     0,     0,
  288.      4,     0,     5,     0,     6,     0,     0,     0,     8,     0,
  289.      9,     0,     0,     0,    11,    12,    13,     1,     0,     2,
  290.      0,     3,     0,     0,     4,     0,     5,     0,     6,     0,
  291.      0,     7,     8,     0,     9,     0,     0,    10,    11,    12,
  292.     13,    75,    62,    63,     0,     3,    49,    50,     4,     0,
  293.      5,     0,     6,   -35,     0,     0,     8,     0,     9,     0,
  294.      0,    75,    11,    12,    13,     3,     0,     0,     4,     0,
  295.      5,     4,     6,     5,     0,     6,     8,     0,     9,     8,
  296.      0,     9,    11,    12,    13,    11,    12,    13,    45,    90,
  297.      0,     0,     0,     0,    46,    47,     9,    48,    49,    50,
  298.     11,    12,    13,    45,   129,     0,     0,     0,     0,    46,
  299.     47,     9,    48,    49,    50,    11,    12,    13,    45,     0,
  300.      0,     0,     0,     0,    46,    47,     0,    48,    49,    50
  301. };
  302.  
  303. static const short yycheck[] = {    14,
  304.     34,    45,    17,     2,    56,    17,    84,    85,    36,    84,
  305.      0,    10,    45,    65,    45,     1,    85,     3,     2,     4,
  306.      3,    36,     5,    22,    85,    15,    78,    84,    85,    19,
  307.     16,    17,    20,    21,    20,    21,    21,    16,    22,     4,
  308.     68,   119,    21,    16,   119,     7,     3,    81,    21,     6,
  309.    128,     3,    96,    81,   106,   107,    55,    72,    86,   128,
  310.     72,    60,   119,    96,     9,    96,    81,   128,    67,     6,
  311.     69,   128,    16,    17,    16,    17,    20,    21,    20,    21,
  312.      1,    16,     3,   135,     3,    84,    85,    11,   122,    16,
  313.      3,   125,   120,     3,   122,    16,    17,    17,     1,    20,
  314.     21,     6,   101,     7,    13,   139,    17,   122,     9,    20,
  315.     21,   110,   127,    16,    17,    22,     3,    20,    21,     0,
  316.    119,    20,     0,     1,     0,     3,   141,     5,    96,   128,
  317.      8,    15,    10,   107,    12,    65,    14,     4,    16,     4,
  318.     18,    36,   122,    21,    22,    23,    24,     0,     1,    -1,
  319.      3,    -1,     5,    -1,    -1,     8,    -1,    10,    17,    12,
  320.     -1,    20,    21,    16,    -1,    18,    -1,    -1,    21,    22,
  321.     23,    24,     0,     1,    -1,     3,    -1,     5,    -1,    -1,
  322.      8,    -1,    10,    -1,    12,    13,    -1,    -1,    16,    -1,
  323.     18,    -1,    -1,    -1,    22,    23,    24,     0,     1,    -1,
  324.      3,    -1,     5,    -1,    -1,     8,    -1,    10,    -1,    12,
  325.     -1,    14,    -1,    16,    -1,    18,    -1,    -1,    -1,    22,
  326.     23,    24,     0,     1,    -1,     3,    -1,     5,    -1,    -1,
  327.      8,    -1,    10,    -1,    12,    -1,    -1,    -1,    16,    -1,
  328.     18,    -1,    -1,    -1,    22,    23,    24,     1,    -1,     3,
  329.     -1,     5,    -1,    -1,     8,    -1,    10,    -1,    12,    -1,
  330.     -1,    15,    16,    -1,    18,    -1,    -1,    21,    22,    23,
  331.     24,     1,    16,    17,    -1,     5,    20,    21,     8,    -1,
  332.     10,    -1,    12,    13,    -1,    -1,    16,    -1,    18,    -1,
  333.     -1,     1,    22,    23,    24,     5,    -1,    -1,     8,    -1,
  334.     10,     8,    12,    10,    -1,    12,    16,    -1,    18,    16,
  335.     -1,    18,    22,    23,    24,    22,    23,    24,    10,    11,
  336.     -1,    -1,    -1,    -1,    16,    17,    18,    19,    20,    21,
  337.     22,    23,    24,    10,    11,    -1,    -1,    -1,    -1,    16,
  338.     17,    18,    19,    20,    21,    22,    23,    24,    10,    -1,
  339.     -1,    -1,    -1,    -1,    16,    17,    -1,    19,    20,    21
  340. };
  341. #define YYPURE 1
  342.  
  343. /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  344. #line 3 "/home3/sbb/gnu/lib/bison.simple"
  345.  
  346. /* Skeleton output parser for bison,
  347.    Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  348.  
  349.    This program is free software; you can redistribute it and/or modify
  350.    it under the terms of the GNU General Public License as published by
  351.    the Free Software Foundation; either version 1, or (at your option)
  352.    any later version.
  353.  
  354.    This program is distributed in the hope that it will be useful,
  355.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  356.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  357.    GNU General Public License for more details.
  358.  
  359.    You should have received a copy of the GNU General Public License
  360.    along with this program; if not, write to the Free Software
  361.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  362.  
  363.  
  364. #ifndef alloca
  365. #ifdef __GNUC__
  366. #define alloca __builtin_alloca
  367. #else /* Not GNU C.  */
  368. #if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__)
  369. #include <alloca.h>
  370. #else /* Not sparc */
  371. #ifdef MSDOS
  372. #include <malloc.h>
  373. #endif /* MSDOS */
  374. #endif /* Not sparc.  */
  375. #endif /* Not GNU C.  */
  376. #endif /* alloca not defined.  */
  377.  
  378. /* This is the parser code that is written into each bison parser
  379.   when the %semantic_parser declaration is not specified in the grammar.
  380.   It was written by Richard Stallman by simplifying the hairy parser
  381.   used when %semantic_parser is specified.  */
  382.  
  383. /* Note: there must be only one dollar sign in this file.
  384.    It is replaced by the list of actions, each action
  385.    as one case of the switch.  */
  386.  
  387. #define yyerrok        (yyerrstatus = 0)
  388. #define yyclearin    (yychar = YYEMPTY)
  389. #define YYEMPTY        -2
  390. #define YYEOF        0
  391. #define YYACCEPT    return(0)
  392. #define YYABORT     return(1)
  393. #define YYERROR        goto yyerrlab1
  394. /* Like YYERROR except do call yyerror.
  395.    This remains here temporarily to ease the
  396.    transition to the new meaning of YYERROR, for GCC.
  397.    Once GCC version 2 has supplanted version 1, this can go.  */
  398. #define YYFAIL        goto yyerrlab
  399. #define YYRECOVERING()  (!!yyerrstatus)
  400. #define YYBACKUP(token, value) \
  401. do                                \
  402.   if (yychar == YYEMPTY && yylen == 1)                \
  403.     { yychar = (token), yylval = (value);            \
  404.       yychar1 = YYTRANSLATE (yychar);                \
  405.       YYPOPSTACK;                        \
  406.       goto yybackup;                        \
  407.     }                                \
  408.   else                                \
  409.     { yyerror ("syntax error: cannot back up"); YYERROR; }    \
  410. while (0)
  411.  
  412. #define YYTERROR    1
  413. #define YYERRCODE    256
  414.  
  415. #ifndef YYPURE
  416. #define YYLEX        yylex()
  417. #endif
  418.  
  419. #ifdef YYPURE
  420. #ifdef YYLSP_NEEDED
  421. #define YYLEX        yylex(&yylval, &yylloc)
  422. #else
  423. #define YYLEX        yylex(&yylval)
  424. #endif
  425. #endif
  426.  
  427. /* If nonreentrant, generate the variables here */
  428.  
  429. #ifndef YYPURE
  430.  
  431. int    yychar;            /*  the lookahead symbol        */
  432. YYSTYPE    yylval;            /*  the semantic value of the        */
  433.                 /*  lookahead symbol            */
  434.  
  435. #ifdef YYLSP_NEEDED
  436. YYLTYPE yylloc;            /*  location data for the lookahead    */
  437.                 /*  symbol                */
  438. #endif
  439.  
  440. int yynerrs;            /*  number of parse errors so far       */
  441. #endif  /* not YYPURE */
  442.  
  443. #if YYDEBUG != 0
  444. int yydebug;            /*  nonzero means print parse trace    */
  445. /* Since this is uninitialized, it does not stop multiple parsers
  446.    from coexisting.  */
  447. #endif
  448.  
  449. /*  YYINITDEPTH indicates the initial size of the parser's stacks    */
  450.  
  451. #ifndef    YYINITDEPTH
  452. #define YYINITDEPTH 200
  453. #endif
  454.  
  455. /*  YYMAXDEPTH is the maximum size the stacks can grow to
  456.     (effective only if the built-in stack extension method is used).  */
  457.  
  458. #if YYMAXDEPTH == 0
  459. #undef YYMAXDEPTH
  460. #endif
  461.  
  462. #ifndef YYMAXDEPTH
  463. #define YYMAXDEPTH 10000
  464. #endif
  465.  
  466. #ifndef __cplusplus
  467.  
  468. /* This is the most reliable way to avoid incompatibilities
  469.    in available built-in functions on various systems.  */
  470. static void
  471. __yy_bcopy (from, to, count)
  472.      char *from;
  473.      char *to;
  474.      int count;
  475. {
  476.   register char *f = from;
  477.   register char *t = to;
  478.   register int i = count;
  479.  
  480.   while (i-- > 0)
  481.     *t++ = *f++;
  482. }
  483.  
  484. #else /* __cplusplus */
  485.  
  486. /* This is the most reliable way to avoid incompatibilities
  487.    in available built-in functions on various systems.  */
  488. static void
  489. __yy_bcopy (char *from, char *to, int count)
  490. {
  491.   register char *f = from;
  492.   register char *t = to;
  493.   register int i = count;
  494.  
  495.   while (i-- > 0)
  496.     *t++ = *f++;
  497. }
  498.  
  499. #endif
  500.  
  501. #line 160 "/home3/sbb/gnu/lib/bison.simple"
  502. int
  503. yyparse()
  504. {
  505.   register int yystate;
  506.   register int yyn;
  507.   register short *yyssp;
  508.   register YYSTYPE *yyvsp;
  509.   int yyerrstatus;    /*  number of tokens to shift before error messages enabled */
  510.   int yychar1;        /*  lookahead token as an internal (translated) token number */
  511.  
  512.   short    yyssa[YYINITDEPTH];    /*  the state stack            */
  513.   YYSTYPE yyvsa[YYINITDEPTH];    /*  the semantic value stack        */
  514.  
  515.   short *yyss = yyssa;        /*  refer to the stacks thru separate pointers */
  516.   YYSTYPE *yyvs = yyvsa;    /*  to allow yyoverflow to reallocate them elsewhere */
  517.  
  518. #ifdef YYLSP_NEEDED
  519.   YYLTYPE *yyls = yylsa;
  520.   YYLTYPE *yylsp;
  521.   YYLTYPE yylsa[YYINITDEPTH];    /*  the location stack            */
  522.  
  523. #define YYPOPSTACK   (yyvsp--, yysp--, yylsp--)
  524. #else
  525. #define YYPOPSTACK   (yyvsp--, yysp--)
  526. #endif
  527.  
  528.   int yystacksize = YYINITDEPTH;
  529.  
  530. #ifdef YYPURE
  531.   int yychar;
  532.   YYSTYPE yylval;
  533.   int yynerrs;
  534. #ifdef YYLSP_NEEDED
  535.   YYLTYPE yylloc;
  536. #endif
  537. #endif
  538.  
  539.   YYSTYPE yyval;        /*  the variable used to return        */
  540.                 /*  semantic values from the action    */
  541.                 /*  routines                */
  542.  
  543.   int yylen;
  544.  
  545. #if YYDEBUG != 0
  546.   if (yydebug)
  547.     fprintf(stderr, "Starting parse\n");
  548. #endif
  549.  
  550.   yystate = 0;
  551.   yyerrstatus = 0;
  552.   yynerrs = 0;
  553.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  554.  
  555.   /* Initialize stack pointers.
  556.      Waste one element of value and location stack
  557.      so that they stay on the same level as the state stack.  */
  558.  
  559.   yyssp = yyss - 1;
  560.   yyvsp = yyvs;
  561. #ifdef YYLSP_NEEDED
  562.   yylsp = yyls;
  563. #endif
  564.  
  565. /* Push a new state, which is found in  yystate  .  */
  566. /* In all cases, when you get here, the value and location stacks
  567.    have just been pushed. so pushing a state here evens the stacks.  */
  568. yynewstate:
  569.  
  570.   *++yyssp = yystate;
  571.  
  572.   if (yyssp >= yyss + yystacksize - 1)
  573.     {
  574.       /* Give user a chance to reallocate the stack */
  575.       /* Use copies of these so that the &'s don't force the real ones into memory. */
  576.       YYSTYPE *yyvs1 = yyvs;
  577.       short *yyss1 = yyss;
  578. #ifdef YYLSP_NEEDED
  579.       YYLTYPE *yyls1 = yyls;
  580. #endif
  581.  
  582.       /* Get the current used size of the three stacks, in elements.  */
  583.       int size = yyssp - yyss + 1;
  584.  
  585. #ifdef yyoverflow
  586.       /* Each stack pointer address is followed by the size of
  587.      the data in use in that stack, in bytes.  */
  588.       yyoverflow("parser stack overflow",
  589.          &yyss1, size * sizeof (*yyssp),
  590.          &yyvs1, size * sizeof (*yyvsp),
  591. #ifdef YYLSP_NEEDED
  592.          &yyls1, size * sizeof (*yylsp),
  593. #endif
  594.          &yystacksize);
  595.  
  596.       yyss = yyss1; yyvs = yyvs1;
  597. #ifdef YYLSP_NEEDED
  598.       yyls = yyls1;
  599. #endif
  600. #else /* no yyoverflow */
  601.       /* Extend the stack our own way.  */
  602.       if (yystacksize >= YYMAXDEPTH)
  603.     {
  604.       yyerror("parser stack overflow");
  605.       return 2;
  606.     }
  607.       yystacksize *= 2;
  608.       if (yystacksize > YYMAXDEPTH)
  609.     yystacksize = YYMAXDEPTH;
  610.       yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  611.       __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  612.       yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  613.       __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  614. #ifdef YYLSP_NEEDED
  615.       yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  616.       __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  617. #endif
  618. #endif /* no yyoverflow */
  619.  
  620.       yyssp = yyss + size - 1;
  621.       yyvsp = yyvs + size - 1;
  622. #ifdef YYLSP_NEEDED
  623.       yylsp = yyls + size - 1;
  624. #endif
  625.  
  626. #if YYDEBUG != 0
  627.       if (yydebug)
  628.     fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  629. #endif
  630.  
  631.       if (yyssp >= yyss + yystacksize - 1)
  632.     YYABORT;
  633.     }
  634.  
  635. #if YYDEBUG != 0
  636.   if (yydebug)
  637.     fprintf(stderr, "Entering state %d\n", yystate);
  638. #endif
  639.  
  640.  yybackup:
  641.  
  642. /* Do appropriate processing given the current state.  */
  643. /* Read a lookahead token if we need one and don't already have one.  */
  644. /* yyresume: */
  645.  
  646.   /* First try to decide what to do without reference to lookahead token.  */
  647.  
  648.   yyn = yypact[yystate];
  649.   if (yyn == YYFLAG)
  650.     goto yydefault;
  651.  
  652.   /* Not known => get a lookahead token if don't already have one.  */
  653.  
  654.   /* yychar is either YYEMPTY or YYEOF
  655.      or a valid token in external form.  */
  656.  
  657.   if (yychar == YYEMPTY)
  658.     {
  659. #if YYDEBUG != 0
  660.       if (yydebug)
  661.     fprintf(stderr, "Reading a token: ");
  662. #endif
  663.       yychar = YYLEX;
  664.     }
  665.  
  666.   /* Convert token to internal form (in yychar1) for indexing tables with */
  667.  
  668.   if (yychar <= 0)        /* This means end of input. */
  669.     {
  670.       yychar1 = 0;
  671.       yychar = YYEOF;        /* Don't call YYLEX any more */
  672.  
  673. #if YYDEBUG != 0
  674.       if (yydebug)
  675.     fprintf(stderr, "Now at end of input.\n");
  676. #endif
  677.     }
  678.   else
  679.     {
  680.       yychar1 = YYTRANSLATE(yychar);
  681.  
  682. #if YYDEBUG != 0
  683.       if (yydebug)
  684.     fprintf(stderr, "Next token is %d (%s)\n", yychar, yytname[yychar1]);
  685. #endif
  686.     }
  687.  
  688.   yyn += yychar1;
  689.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  690.     goto yydefault;
  691.  
  692.   yyn = yytable[yyn];
  693.  
  694.   /* yyn is what to do for this token type in this state.
  695.      Negative => reduce, -yyn is rule number.
  696.      Positive => shift, yyn is new state.
  697.        New state is final state => don't bother to shift,
  698.        just return success.
  699.      0, or most negative number => error.  */
  700.  
  701.   if (yyn < 0)
  702.     {
  703.       if (yyn == YYFLAG)
  704.     goto yyerrlab;
  705.       yyn = -yyn;
  706.       goto yyreduce;
  707.     }
  708.   else if (yyn == 0)
  709.     goto yyerrlab;
  710.  
  711.   if (yyn == YYFINAL)
  712.     YYACCEPT;
  713.  
  714.   /* Shift the lookahead token.  */
  715.  
  716. #if YYDEBUG != 0
  717.   if (yydebug)
  718.     fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  719. #endif
  720.  
  721.   /* Discard the token being shifted unless it is eof.  */
  722.   if (yychar != YYEOF)
  723.     yychar = YYEMPTY;
  724.  
  725.   *++yyvsp = yylval;
  726. #ifdef YYLSP_NEEDED
  727.   *++yylsp = yylloc;
  728. #endif
  729.  
  730.   /* count tokens shifted since error; after three, turn off error status.  */
  731.   if (yyerrstatus) yyerrstatus--;
  732.  
  733.   yystate = yyn;
  734.   goto yynewstate;
  735.  
  736. /* Do the default action for the current state.  */
  737. yydefault:
  738.  
  739.   yyn = yydefact[yystate];
  740.   if (yyn == 0)
  741.     goto yyerrlab;
  742.  
  743. /* Do a reduction.  yyn is the number of a rule to reduce with.  */
  744. yyreduce:
  745.   yylen = yyr2[yyn];
  746.   yyval = yyvsp[1-yylen]; /* implement default value of the action */
  747.  
  748. #if YYDEBUG != 0
  749.   if (yydebug)
  750.     {
  751.       int i;
  752.  
  753.       fprintf (stderr, "Reducing via rule %d (line %d), ",
  754.            yyn, yyrline[yyn]);
  755.  
  756.       /* Print the symboles being reduced, and their result.  */
  757.       for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  758.     fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  759.       fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  760.     }
  761. #endif
  762.  
  763.  
  764.   switch (yyn) {
  765.  
  766. case 2:
  767. #line 81 "mst.y"
  768. { compileMethod(yyvsp[0].node); ;
  769.     break;}
  770. case 3:
  771. #line 85 "mst.y"
  772. { clearMethodStartPos(); ;
  773.     break;}
  774. case 8:
  775. #line 95 "mst.y"
  776. { if (!hadError) {
  777.                         executeStatements(nil, yyvsp[-1].node,
  778.                                 quietExecution); 
  779.                       }
  780.                       hadError = false;
  781.                     ;
  782.     break;}
  783. case 9:
  784. #line 102 "mst.y"
  785. { if (!hadError) {
  786.                         executeStatements(yyvsp[-2].node, yyvsp[-1].node,
  787.                                 quietExecution); 
  788.                                           }
  789.                       hadError = false;
  790.                                         ;
  791.     break;}
  792. case 10:
  793. #line 108 "mst.y"
  794. { hadError = false; ;
  795.     break;}
  796. case 11:
  797. #line 112 "mst.y"
  798. { clearMethodStartPos(); ;
  799.     break;}
  800. case 12:
  801. #line 116 "mst.y"
  802. { executeStatements(nil, 
  803.                     makeStatementList(yyvsp[0].node, nil), true); ;
  804.     break;}
  805. case 13:
  806. #line 149 "mst.y"
  807. { if (!hadError) {
  808.                         compileMethod(yyvsp[-1].node);
  809.                         clearMethodStartPos();
  810.                       } else {
  811.                         hadError = false;
  812.                       }
  813.                     ;
  814.     break;}
  815. case 14:
  816. #line 156 "mst.y"
  817. { if (!hadError) {
  818.                         compileMethod(yyvsp[-1].node);
  819.                         clearMethodStartPos();
  820.                       } else {
  821.                         hadError = false;
  822.                       }
  823.                     ;
  824.     break;}
  825. case 15:
  826. #line 167 "mst.y"
  827. { yyval.node = makeMethod(yyvsp[-1].node, nil, 0, yyvsp[0].node); ;
  828.     break;}
  829. case 16:
  830. #line 169 "mst.y"
  831. { yyval.node = makeMethod(yyvsp[-2].node, yyvsp[-1].node, 0, yyvsp[0].node); ;
  832.     break;}
  833. case 17:
  834. #line 171 "mst.y"
  835. { yyval.node = makeMethod(yyvsp[-2].node, nil, yyvsp[-1].ival, yyvsp[0].node); ;
  836.     break;}
  837. case 18:
  838. #line 173 "mst.y"
  839. { yyval.node = makeMethod(yyvsp[-3].node, yyvsp[-2].node, yyvsp[-1].ival, yyvsp[0].node); ;
  840.     break;}
  841. case 19:
  842. #line 178 "mst.y"
  843. { yyval.node = makeUnaryExpr(nil, yyvsp[0].sval); ;
  844.     break;}
  845. case 20:
  846. #line 179 "mst.y"
  847. { yyval.node = makeBinaryExpr(nil, yyvsp[-1].sval,
  848.                                       yyvsp[0].node); ;
  849.     break;}
  850. case 21:
  851. #line 181 "mst.y"
  852. { yyval.node = makeKeywordExpr(nil, yyvsp[0].node); ;
  853.     break;}
  854. case 22:
  855. #line 182 "mst.y"
  856. { errorf("Invalid message pattern");
  857.                       hadError = true;
  858.                       yyval.node = nil; ;
  859.     break;}
  860. case 26:
  861. #line 197 "mst.y"
  862. { yyval.node = makeVariable(yyvsp[0].sval); ;
  863.     break;}
  864. case 27:
  865. #line 201 "mst.y"
  866. { yyval.node = makeKeywordList(yyvsp[-1].sval, yyvsp[0].node); ;
  867.     break;}
  868. case 28:
  869. #line 203 "mst.y"
  870. { addNode(yyvsp[-2].node, makeKeywordList(yyvsp[-1].sval, yyvsp[0].node));
  871.                       yyval.node = yyvsp[-2].node; ;
  872.     break;}
  873. case 30:
  874. #line 213 "mst.y"
  875. { yyval.ival = yyvsp[-1].ival;
  876.                       if (strcmp(yyvsp[0].sval, ">") != 0) {
  877.                         YYERROR;
  878.                       }
  879.                     ;
  880.     break;}
  881. case 31:
  882. #line 220 "mst.y"
  883. { yyval.node = nil; ;
  884.     break;}
  885. case 32:
  886. #line 222 "mst.y"
  887. { yyval.node = yyvsp[-1].node; ;
  888.     break;}
  889. case 33:
  890. #line 226 "mst.y"
  891. { yyval.node = makeVariableList(yyvsp[0].node); ;
  892.     break;}
  893. case 34:
  894. #line 227 "mst.y"
  895. { addNode(yyvsp[-1].node, makeVariableList(yyvsp[0].node));
  896.                       yyval.node = yyvsp[-1].node; ;
  897.     break;}
  898. case 35:
  899. #line 232 "mst.y"
  900. { yyval.node = nil; ;
  901.     break;}
  902. case 37:
  903. #line 238 "mst.y"
  904. { yyval.node = makeStatementList(makeReturn(yyvsp[0].node),
  905.                                    nil); ;
  906.     break;}
  907. case 38:
  908. #line 240 "mst.y"
  909. { yyval.node = makeStatementList(yyvsp[0].node, nil); ;
  910.     break;}
  911. case 39:
  912. #line 243 "mst.y"
  913. { yyval.node = makeStatementList(yyvsp[-2].node, yyvsp[0].node); ;
  914.     break;}
  915. case 40:
  916. #line 244 "mst.y"
  917. { yyval.node = yyvsp[0].node;
  918.                   yyerrok;
  919.                   errorf("Error in expression");
  920.                   hadError = true;
  921.                 ;
  922.     break;}
  923. case 42:
  924. #line 253 "mst.y"
  925. { yyval.node = makeAssign(yyvsp[-1].node, yyvsp[0].node); ;
  926.     break;}
  927. case 43:
  928. #line 257 "mst.y"
  929. { yyval.node = makeVariableList(yyvsp[-1].node); ;
  930.     break;}
  931. case 44:
  932. #line 259 "mst.y"
  933. { addNode(yyvsp[-2].node, makeVariableList(yyvsp[-1].node));
  934.                       yyval.node = yyvsp[-2].node; ;
  935.     break;}
  936. case 51:
  937. #line 273 "mst.y"
  938. { yyval.node = yyvsp[-1].node; ;
  939.     break;}
  940. case 57:
  941. #line 285 "mst.y"
  942. { yyval.node = makeIntConstant(yyvsp[0].ival); ;
  943.     break;}
  944. case 58:
  945. #line 286 "mst.y"
  946. { yyval.node = makeFloatConstant(yyvsp[0].fval); ;
  947.     break;}
  948. case 59:
  949. #line 290 "mst.y"
  950. { yyval.node = makeSymbolConstant(yyvsp[0].node); ;
  951.     break;}
  952. case 60:
  953. #line 294 "mst.y"
  954. { yyval.node = internIdent(yyvsp[0].sval); ;
  955.     break;}
  956. case 61:
  957. #line 295 "mst.y"
  958. { yyval.node = internBinOP(yyvsp[0].sval); ;
  959.     break;}
  960. case 62:
  961. #line 296 "mst.y"
  962. { yyval.node = internIdent(yyvsp[0].sval); ;
  963.     break;}
  964. case 63:
  965. #line 297 "mst.y"
  966. { yyval.node = internIdent(yyvsp[0].sval); ;
  967.     break;}
  968. case 64:
  969. #line 302 "mst.y"
  970. { yyval.node = makeCharConstant(yyvsp[0].cval); ;
  971.     break;}
  972. case 65:
  973. #line 306 "mst.y"
  974. { yyval.node = makeStringConstant(yyvsp[0].sval); ;
  975.     break;}
  976. case 66:
  977. #line 310 "mst.y"
  978. { yyval.node = makeArrayConstant(yyvsp[0].node); ;
  979.     break;}
  980. case 67:
  981. #line 314 "mst.y"
  982. { yyval.node = nil; ;
  983.     break;}
  984. case 68:
  985. #line 316 "mst.y"
  986. { yyval.node = yyvsp[-1].node; ;
  987.     break;}
  988. case 69:
  989. #line 320 "mst.y"
  990. { yyval.node = makeArrayElt(yyvsp[0].node); ;
  991.     break;}
  992. case 70:
  993. #line 322 "mst.y"
  994. { addNode(yyvsp[-1].node, makeArrayElt(yyvsp[0].node));
  995.                       yyval.node = yyvsp[-1].node; ;
  996.     break;}
  997. case 76:
  998. #line 336 "mst.y"
  999. { yyval.node = makeBlock(yyvsp[-2].node, yyvsp[-1].node); ;
  1000.     break;}
  1001. case 77:
  1002. #line 340 "mst.y"
  1003. { yyval.node = nil; ;
  1004.     break;}
  1005. case 79:
  1006. #line 348 "mst.y"
  1007. { yyval.node = makeVariableList(yyvsp[0].node); ;
  1008.     break;}
  1009. case 80:
  1010. #line 350 "mst.y"
  1011. { addNode(yyvsp[-2].node, makeVariableList(yyvsp[0].node));
  1012.                       yyval.node = yyvsp[-2].node; ;
  1013.     break;}
  1014. case 84:
  1015. #line 361 "mst.y"
  1016. { yyval.node = makeUnaryExpr(yyvsp[-1].node, yyvsp[0].sval); ;
  1017.     break;}
  1018. case 87:
  1019. #line 371 "mst.y"
  1020. { yyval.node = makeBinaryExpr(yyvsp[-2].node, yyvsp[-1].sval, yyvsp[0].node); ;
  1021.     break;}
  1022. case 90:
  1023. #line 381 "mst.y"
  1024. { yyval.node = makeKeywordExpr(yyvsp[-1].node, yyvsp[0].node); ;
  1025.     break;}
  1026. case 91:
  1027. #line 386 "mst.y"
  1028. { yyval.node = makeKeywordList(yyvsp[-1].sval, yyvsp[0].node); ;
  1029.     break;}
  1030. case 92:
  1031. #line 388 "mst.y"
  1032. { addNode(yyvsp[-2].node, makeKeywordList(yyvsp[-1].sval, yyvsp[0].node));
  1033.                       yyval.node = yyvsp[-2].node; ;
  1034.     break;}
  1035. case 93:
  1036. #line 394 "mst.y"
  1037. { yyval.node = makeCascadedMessage(yyvsp[-1].node, yyvsp[0].node); ;
  1038.     break;}
  1039. case 94:
  1040. #line 398 "mst.y"
  1041. { yyval.node = makeMessageList(yyvsp[0].node); ;
  1042.     break;}
  1043. case 95:
  1044. #line 400 "mst.y"
  1045. { addNode(yyvsp[-2].node, makeMessageList(yyvsp[0].node));
  1046.                       yyval.node = yyvsp[-2].node; ;
  1047.     break;}
  1048. case 96:
  1049. #line 405 "mst.y"
  1050. { yyval.node = makeUnaryExpr(nil, yyvsp[0].sval); ;
  1051.     break;}
  1052. case 97:
  1053. #line 407 "mst.y"
  1054. { yyval.node = makeBinaryExpr(nil, yyvsp[-1].sval, yyvsp[0].node); ;
  1055.     break;}
  1056. case 98:
  1057. #line 409 "mst.y"
  1058. { yyval.node = makeKeywordExpr(nil, yyvsp[0].node); ;
  1059.     break;}
  1060. }
  1061.    /* the action file gets copied in in place of this dollarsign */
  1062. #line 423 "/home3/sbb/gnu/lib/bison.simple"
  1063.  
  1064.   yyvsp -= yylen;
  1065.   yyssp -= yylen;
  1066. #ifdef YYLSP_NEEDED
  1067.   yylsp -= yylen;
  1068. #endif
  1069.  
  1070. #if YYDEBUG != 0
  1071.   if (yydebug)
  1072.     {
  1073.       short *ssp1 = yyss - 1;
  1074.       fprintf (stderr, "state stack now");
  1075.       while (ssp1 != yyssp)
  1076.     fprintf (stderr, " %d", *++ssp1);
  1077.       fprintf (stderr, "\n");
  1078.     }
  1079. #endif
  1080.  
  1081.   *++yyvsp = yyval;
  1082.  
  1083. #ifdef YYLSP_NEEDED
  1084.   yylsp++;
  1085.   if (yylen == 0)
  1086.     {
  1087.       yylsp->first_line = yylloc.first_line;
  1088.       yylsp->first_column = yylloc.first_column;
  1089.       yylsp->last_line = (yylsp-1)->last_line;
  1090.       yylsp->last_column = (yylsp-1)->last_column;
  1091.       yylsp->text = 0;
  1092.     }
  1093.   else
  1094.     {
  1095.       yylsp->last_line = (yylsp+yylen-1)->last_line;
  1096.       yylsp->last_column = (yylsp+yylen-1)->last_column;
  1097.     }
  1098. #endif
  1099.  
  1100.   /* Now "shift" the result of the reduction.
  1101.      Determine what state that goes to,
  1102.      based on the state we popped back to
  1103.      and the rule number reduced by.  */
  1104.  
  1105.   yyn = yyr1[yyn];
  1106.  
  1107.   yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  1108.   if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  1109.     yystate = yytable[yystate];
  1110.   else
  1111.     yystate = yydefgoto[yyn - YYNTBASE];
  1112.  
  1113.   goto yynewstate;
  1114.  
  1115. yyerrlab:   /* here on detecting error */
  1116.  
  1117.   if (! yyerrstatus)
  1118.     /* If not already recovering from an error, report this error.  */
  1119.     {
  1120.       ++yynerrs;
  1121.  
  1122. #ifdef YYERROR_VERBOSE
  1123.       yyn = yypact[yystate];
  1124.  
  1125.       if (yyn > YYFLAG && yyn < YYLAST)
  1126.     {
  1127.       int size = 0;
  1128.       char *msg;
  1129.       int x, count;
  1130.  
  1131.       count = 0;
  1132.       for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
  1133.         if (yycheck[x + yyn] == x)
  1134.           size += strlen(yytname[x]) + 15, count++;
  1135.       msg = (char *) xmalloc(size + 15);
  1136.       strcpy(msg, "parse error");
  1137.  
  1138.       if (count < 5)
  1139.         {
  1140.           count = 0;
  1141.           for (x = 0; x < (sizeof(yytname) / sizeof(char *)); x++)
  1142.         if (yycheck[x + yyn] == x)
  1143.           {
  1144.             strcat(msg, count == 0 ? ", expecting `" : " or `");
  1145.             strcat(msg, yytname[x]);
  1146.             strcat(msg, "'");
  1147.             count++;
  1148.           }
  1149.         }
  1150.       yyerror(msg);
  1151.       free(msg);
  1152.     }
  1153.       else
  1154. #endif /* YYERROR_VERBOSE */
  1155.     yyerror("parse error");
  1156.     }
  1157.  
  1158. yyerrlab1:   /* here on error raised explicitly by an action */
  1159.  
  1160.   if (yyerrstatus == 3)
  1161.     {
  1162.       /* if just tried and failed to reuse lookahead token after an error, discard it.  */
  1163.  
  1164.       /* return failure if at end of input */
  1165.       if (yychar == YYEOF)
  1166.     YYABORT;
  1167.  
  1168. #if YYDEBUG != 0
  1169.       if (yydebug)
  1170.     fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  1171. #endif
  1172.  
  1173.       yychar = YYEMPTY;
  1174.     }
  1175.  
  1176.   /* Else will try to reuse lookahead token
  1177.      after shifting the error token.  */
  1178.  
  1179.   yyerrstatus = 3;        /* Each real token shifted decrements this */
  1180.  
  1181.   goto yyerrhandle;
  1182.  
  1183. yyerrdefault:  /* current state does not do anything special for the error token. */
  1184.  
  1185. #if 0
  1186.   /* This is wrong; only states that explicitly want error tokens
  1187.      should shift them.  */
  1188.   yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  1189.   if (yyn) goto yydefault;
  1190. #endif
  1191.  
  1192. yyerrpop:   /* pop the current state because it cannot handle the error token */
  1193.  
  1194.   if (yyssp == yyss) YYABORT;
  1195.   yyvsp--;
  1196.   yystate = *--yyssp;
  1197. #ifdef YYLSP_NEEDED
  1198.   yylsp--;
  1199. #endif
  1200.  
  1201. #if YYDEBUG != 0
  1202.   if (yydebug)
  1203.     {
  1204.       short *ssp1 = yyss - 1;
  1205.       fprintf (stderr, "Error: state stack now");
  1206.       while (ssp1 != yyssp)
  1207.     fprintf (stderr, " %d", *++ssp1);
  1208.       fprintf (stderr, "\n");
  1209.     }
  1210. #endif
  1211.  
  1212. yyerrhandle:
  1213.  
  1214.   yyn = yypact[yystate];
  1215.   if (yyn == YYFLAG)
  1216.     goto yyerrdefault;
  1217.  
  1218.   yyn += YYTERROR;
  1219.   if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  1220.     goto yyerrdefault;
  1221.  
  1222.   yyn = yytable[yyn];
  1223.   if (yyn < 0)
  1224.     {
  1225.       if (yyn == YYFLAG)
  1226.     goto yyerrpop;
  1227.       yyn = -yyn;
  1228.       goto yyreduce;
  1229.     }
  1230.   else if (yyn == 0)
  1231.     goto yyerrpop;
  1232.  
  1233.   if (yyn == YYFINAL)
  1234.     YYACCEPT;
  1235.  
  1236. #if YYDEBUG != 0
  1237.   if (yydebug)
  1238.     fprintf(stderr, "Shifting error token, ");
  1239. #endif
  1240.  
  1241.   *++yyvsp = yylval;
  1242. #ifdef YYLSP_NEEDED
  1243.   *++yylsp = yylloc;
  1244. #endif
  1245.  
  1246.   yystate = yyn;
  1247.   goto yynewstate;
  1248. }
  1249. #line 413 "mst.y"
  1250.  
  1251. /*     
  1252. ADDITIONAL C CODE
  1253. */
  1254.  
  1255.